{:W('Cate/Menu')}
  <div class="container-full content-header">
    <h6 class="text-center title">欢迎来到随遇而安的博客</h6>
    <h3 class="text-center">{$title}</h3>
  </div>

  <div class="container-full content-main">
    <div class="row">
      <div class="col-md-7 col-md-offset-1 articles" >
        <foreach name="articles" item="v">
          <article >
            <h5><a href="{:U('Index/article',array('id'=>$v['id']))}">{$v.title}</a></h5>
            <h6>{$v.about}</h6>
            <h6 class="tabs">
              <span><i class="iconfont-15">&#xe604;</i>评论:<span class="ds-thread-count" data-thread-key="{$title.id}" data-count-type="comments">0</span></span>
              <span><i class="iconfont-15">&#xe605;</i>发布时间:{$v.addtime|strtotime|Date="y-m-d H:i",###}</span>
              <span><a href="{:U('Index/article',array('id'=>$v['id']))}">阅读全文 >>></a></span>
            </h6>
          </article>
        </foreach>
        <!-- 分页 -->
        <div>
          <ul class="pagination">
            <li class="previous <if condition='1 eq $p'>disabled</if>" ><a <if condition='1 neq $p'>href="{:U('',array('cid'=>I('get.cid'),'p'=>$p-1,'s'=>I('get.s')),'html')}"</if>  class="fui-arrow-left"></a></li>
            <for start="1" end="$page+1">
              <li  class="<if condition='$i eq $p'>active</if>"><a href="{:U('',array('cid'=>I('get.cid'),'p'=>$i,'s'=>I('get.s')),'html')}">{$i}</a></li>
            </for>
            <li class="next previous <if condition='$page eq $p'>disabled</if>"><a href="{:U('',array('cid'=>I('get.cid'),'p'=>$p+1,'s'=>I('get.s')),'html')}" class="fui-arrow-right"></a></li>
          </ul>
        </div>
        <!-- 结束分页 -->
      </div>
      <div class=" col-md-3 slidebar">
	
       <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=100% height=86 src="http://music.163.com/outchain/player?type=2&id=424262521&auto=1&height=66"></iframe>
        <div class="panel-group" role="tablist">
          <!-- <div class="panel panel-default"> -->
            <div class="panel-heading list-group-item"  role="tab" id="collapseListGroupHeading1">
              <h4 class="panel-title">
                <a class="" role="button" data-toggle="collapse" href="#collapseListGroup1" aria-expanded="true" aria-controls="collapseListGroup1">
                  最新文章
                </a>
              </h4>
            </div>
            <div id="collapseListGroup1" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="collapseListGroupHeading1" aria-expanded="true">
              {:W('Cate/newest')}
            </div>
          <!-- </div> -->
        </div>
        <div class="panel-group" role="tablist">
          <!-- <div class="panel panel-default"> -->
            <div class="panel-heading list-group-item"  role="tab" id="collapseListGroupHeading2">
              <h4 class="panel-title">
                <a class="" role="button" data-toggle="collapse" href="#collapseListGroup2" aria-expanded="true" aria-controls="collapseListGroup2">
                  热评文章
                </a>
              </h4>
            </div>
            <div id="collapseListGroup2" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="collapseListGroupHeading2" aria-expanded="true">
              <ul class="list-group">
                <!-- <li class="list-group-item">暂无</li> -->
                <div class="ds-top-threads" data-range="daily" data-num-items="5"></div>
              <!-- 多说热评文章 end -->

              </ul>
            </div>
          <!-- </div> -->
        </div>
      </div>
    </div>


  </div>
<include file="Common:footer"/>
